/**
 * @author ghp
 * @date 2023/6/17
 * @title
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
//        boolean res = solution.exist(new char[][]{{'A', 'B', 'C', 'E'}, {'S', 'F', 'C', 'S'}, {'A', 'D', 'E', 'E'}}, 'ABCCED');
//        boolean res = solution.exist(new char[][]{{'A','B','C','E'},{'S','F','C','S'},{'A','D','E','E'}}, "SEE");
//        boolean res = solution.exist(new char[][]{{'A','B','C','E'},{'C','F','C','S'},{'A','D','E','E'}}, "ABCB");
        boolean res = solution.exist(new char[][]{{'a'}}, "a");
        System.out.println(res);
    }
}
